#include "mainwindow.hh"
#include <QGridLayout>

dsa::MainWindow::MainWindow(QWidget *parent) :
  QMainWindow(parent)
{
  QWidget *widget = new QWidget (this);

  _chartDiagram = new dsa::ChartDiagram(widget);
  _listDiagram = new dsa::ListDiagram(widget);

  QGridLayout* gridLayout = new QGridLayout(widget);
  gridLayout->addWidget(_chartDiagram, 0, 0, 1, 1);
  gridLayout->addWidget(_listDiagram,  0, 1, 1, 1);

  setCentralWidget(widget);
}


dsa::ChartDiagram* dsa::MainWindow::GetChartDiagram()
{
  return _chartDiagram;
}

dsa::ListDiagram* dsa::MainWindow::GetListDiagram()
{
  return _listDiagram;
}
